package com.bbm.communitysystem.exce;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

import java.net.BindException;

@RestControllerAdvice
public class ValidExecutionHandler {

    @ExceptionHandler(BindException.class)
    public String validExecution(BindException e) {
        return e.getMessage();
    }
}
